class AliPayResultModel {
  int? resultStatus;
  Result? result;
  String? memo;
  ExtendInfo? extendInfo;

  AliPayResultModel(
      {this.resultStatus, this.result, this.memo, this.extendInfo});

  AliPayResultModel.fromJson(Map<String, dynamic> json) {
    resultStatus = json['resultStatus'];
    result =
    json['result'] != null ? Result.fromJson(json['result']) : null;
    memo = json['memo'];
    extendInfo = json['extendInfo'] != null
        ? ExtendInfo.fromJson(json['extendInfo'])
        : null;
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = Map<String, dynamic>();
    data['resultStatus'] = resultStatus;
    if (result != null) {
      data['result'] = result!.toJson();
    }
    data['memo'] = memo;
    if (extendInfo != null) {
      data['extendInfo'] = extendInfo!.toJson();
    }
    return data;
  }
}

class Result {
  AlipayTradeAppPayResponse? alipayTradeAppPayResponse;
  String? sign;
  String? signType;

  Result({this.alipayTradeAppPayResponse, this.sign, this.signType});

  Result.fromJson(Map<String, dynamic> json) {
    alipayTradeAppPayResponse = json['alipay_trade_app_pay_response'] != null
        ? AlipayTradeAppPayResponse.fromJson(
        json['alipay_trade_app_pay_response'])
        : null;
    sign = json['sign'];
    signType = json['sign_type'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = Map<String, dynamic>();
    if (alipayTradeAppPayResponse != null) {
      data['alipay_trade_app_pay_response'] = alipayTradeAppPayResponse!.toJson();
    }
    data['sign'] = sign;
    data['sign_type'] = signType;
    return data;
  }
}

class AlipayTradeAppPayResponse {
  String? code;
  String? msg;
  String? appId;
  String? authAppId;
  String? charset;
  String? timestamp;
  String? outTradeNo;
  String? totalAmount;
  String? tradeNo;
  String? sellerId;

  AlipayTradeAppPayResponse(
      {this.code,
        this.msg,
        this.appId,
        this.authAppId,
        this.charset,
        this.timestamp,
        this.outTradeNo,
        this.totalAmount,
        this.tradeNo,
        this.sellerId});

  AlipayTradeAppPayResponse.fromJson(Map<String, dynamic> json) {
    code = json['code'];
    msg = json['msg'];
    appId = json['app_id'];
    authAppId = json['auth_app_id'];
    charset = json['charset'];
    timestamp = json['timestamp'];
    outTradeNo = json['out_trade_no'];
    totalAmount = json['total_amount'];
    tradeNo = json['trade_no'];
    sellerId = json['seller_id'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['code'] = code;
    data['msg'] = msg;
    data['app_id'] = appId;
    data['auth_app_id'] = authAppId;
    data['charset'] = charset;
    data['timestamp'] = timestamp;
    data['out_trade_no'] = outTradeNo;
    data['total_amount'] = totalAmount;
    data['trade_no'] = tradeNo;
    data['seller_id'] = sellerId;
    return data;
  }
}

class ExtendInfo {
  bool? doNotExit;
  bool? isDisplayResult;

  ExtendInfo({this.doNotExit, this.isDisplayResult});

  ExtendInfo.fromJson(Map<String, dynamic> json) {
    doNotExit = json['doNotExit'];
    isDisplayResult = json['isDisplayResult'];
  }

  Map<String, dynamic> toJson() {
    final Map<String, dynamic> data = <String, dynamic>{};
    data['doNotExit'] = doNotExit;
    data['isDisplayResult'] = isDisplayResult;
    return data;
  }
}
